package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

public interface RoleService {
    PageResult findByCondition(QueryPageBean queryPageBean);

    void add(Role role, Integer[] permissionIds);

    Role findById(Integer id);

    Integer[] findPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] ids);

    void deleteById(Integer id);
}
